package com.woniuxy.oldmanapi.mapper;

import com.woniuxy.oldmanapi.entity.Discharge;

import com.woniuxy.oldmanapi.zvo.DischargeVo;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;
@Repository
public interface DischargeMapper extends Mapper<Discharge> {
    @Update("update discharge set status=1 where id=#{id}")
    void settlementDischarge(int id);

    List<DischargeVo> selectConsulterByName(String name);

    DischargeVo selectDischargeById(int id);
}